<?php
    if(\think\App::$debug) {
        include THINK_PATH . 'tpl' . DS . 'think_exception.tpl';
        die;
    }
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo \think\Lang::get('System Error'); ?></title>
    <meta name="robots" content="noindex,nofollow"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <style>
        body {
            color: #333;
            font: 14px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 0 20px 20px;
            word-break: break-word;
            background: #fff;
        }

        #pc {
            text-align: center;
            margin-top: calc(50vh - 250px);
        }

        #pc .desc {
            margin: 20px;
        }

        #pc .desc .title {
            color: #6e6e6e;
            font-size: 20px;
        }

        #pc .btn button {
            color: #5EBCFF;
            border: solid 1px #5EBCFF;
            border-radius: 3px;
            background: none;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 14px;
        }
    </style>
</head>
<body>
<div id="pc">
    <div class="img">
        <img src="/static/images/error.png"/>
    </div>
    <div class="desc">
        <div class="title"><?php echo nl2br(htmlentities($message)); ?></div>
    </div>
    <div class="btn">
        <button onclick="window.history.back();">返回上一页</button>
    </div>
</div>
</body>
</html>
